package com.imooc.feign;

import com.imooc.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liansen
 * @create 04-23-16:41
 */
@FeignClient("user-service")
public interface UserMicroServiceFeign {

    @PostMapping("/userinfo/getCountsByCompanyId")
    GraceJSONResult getCountsByCompanyId(@RequestParam("companyId") String companyId);


    @PostMapping("/userinfo/bindingHRToCompany")
    GraceJSONResult bindingHRToCompany(@RequestParam("hrUserId") String hrUserId,
                                              @RequestParam("realname") String realname,
                                              @RequestParam("companyId") String companyId);

    @PostMapping("/userinfo/get")
    GraceJSONResult get(@RequestParam("userId") String userId);

    @PostMapping("/userinfo/changeUserToHR")
    GraceJSONResult changeUserToHR(@RequestParam("userId") String userId);
}
